﻿//机制部门
window.operateEvents = {
    'click .addjzhy': function (e, value, row, index) {
        MyDialog.viewform("SpeList/SelJZHY.html?ID=" + row.ID, "添加机制会员");
    },
    'click .viewjzhy': function (e, value, row, index) {
        MyDialog.viewform("SpeList/JZHYList.html?id=" + row.ID, "查看机制会员");
    }
};
var option = {};
option.columns = [
             {
                 field: 'ID',
                 title: '序号',
                 sortable: true,
                 order: 'asc'
             }, {
                 field: 'Name',
                 title: '名称'
             }, {
                 field: 'Desp',
                 title: '描述',
             }, {
                 sortable: true,
                 field: 'Rato',
                 title: '分润比例',
             }, {
                 sortable: true,
                 field: 'Rato2',
                 title: '积分比例',
             }, {
                 sortable: true,
                 field: 'Sort',
                 title: '等级',
                 order: 'asc'

             }, {
                 field: 'conl',
                 title: '操作',
                 formatter: function (value, row) {
                     var html = '<a href="#" class="addjzhy"   plid="' + row.ID + '" >添加机制会员</a><a href="#" style="margin-left:10px" class="viewjzhy"   plid="' + row.ID + '" >查看机制会员</a>';
                     return html;
                 },
                 events: operateEvents
             }
];

$(document).ready(function () {

});
